﻿<!doctype html><%@ Page Language="C#" AutoEventWireup="True" Inherits="tmAsk.Manager.Admin_ask" Codebehind="admin_ask.aspx.cs" %>
<html>
<head runat="server">
<meta charset="utf-8">
<title>网站基本设置 - 问题管理</title>
<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/jspublic.js" type="text/javascript"></script>
<script src="js/easyui/jquery.easyui.js" type="text/javascript"></script>
<script src="js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<link href="style/right.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

	$(function(){
		
		if (window.frameElement == null) self.location = '/manage';
	
		$('#MyDataGrid').datagrid({
			scrollbarSize: 0,
			fitColumns: true,
			resizable: false,
			checkOnSelect: false,
			rowStyler: function(index,row){
				return 'height: 38px; line-height: 38px; font-size: 14px;';
			}
		});
	
		$(window).resize(function(){
			$("#MyDataGrid").datagrid("resize");
		});
	
	});
	
	function reloadGrid() {
		$('#MyDataGrid').datagrid('reload');
	}
	
</script>
</head>

<body>
<form id="form1" runat="server">
<div class="zs_content">

	<div class="zs_quota">
		<h4>网站基本设置 - 问题管理</h4>
	</div>
	
	<div class="zs_sys">
	
		<div id="tb">
			<h1>按分类或者按标题查找：</h1>
			<asp:DropDownList ID="classtype" runat="server">
				<asp:ListItem Value="0">所有分类</asp:ListItem>
			</asp:DropDownList>
			<asp:TextBox ID="keyword" runat="server" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';"></asp:TextBox>
			<asp:Button ID="button1" runat="server" Text="查找" />
		</div>
		
		<table id="MyDataGrid">
			<thead>
				<tr>
					<th field="checkbox" align="center" data-options="checkbox:true" style="width: 35px;"></th>
					<th field="asktitle" align="left" data-options="fitColumns:true" width="100%">标题</th>
					<th field="askclass" align="center" style="width: 10em;">问题类别</th>
					<th field="askuser" align="center" style="width: 10em;">用户</th>
					<th field="askstatus" align="center" style="width: 10em;">问题状态</th>
					<th field="asktime" align="center" style="width: 6em;">提问时间</th>
					<th field="askexamine" align="center" style="width: 6em;">审核状态</th>
					<th field="del" align="center" style="width: 35px;">删除</th>
				</tr>
			</thead>
			<tbody>
			<asp:Repeater ID="repeaterid" runat="server">
				<ItemTemplate>
				<tr>
					<td align="center"><%# Eval("a_id") %></td>
					<td>
						<a class="listtitle" title="{a_title}" href="admin_urls.aspx?template=template/t_admin_ask_info.html&id=<%# Eval("a_id") %>"><%# Eval("a_title") %></a>
					</td>
					<td align="center"><%# Classname(Eval("a_classid")) %></td>
					<td align="center"><a href="admin_urls.aspx?template=template/t_admin_user_info.html&id=<%# Eval("u_id") %>"><%# Username(Eval("u_id"))%></a></td>
					<td align="center"><%# state(Eval("a_state"))%></td>
					<td align="center"><%# Convert.ToDateTime(Eval("a_time")).ToString("yyyy-MM-dd") %></td>
					<td align="center">
						<asp:Button ID="b_ischeck" runat="server" Text="已审核" />
						<asp:HiddenField ID="ischeck" runat="server" />
					</td>
					<td align="center"><a title="删除" href="Admin_del.aspx?T=b_ask&id=<%# Eval("a_id") %>" onclick="javascript:return confirm('确认要删除吗？');" class="easyui-linkbutton" data-options="iconCls:'icon-recycle'"></a></td>
				</tr>
				</ItemTemplate>
			</asp:Repeater>
			</tbody>
		</table>
		<div class="tools1">
			<div class="act"><input type="submit" value="删除选中" class="btn btn-primary" onclick="javascript:return confirm('确认要删除吗？');" /></div>
		</div>
		
	</div>
	
</div>
</form>

</body>
</html>